package com.hongxin.nw.netty.model.packing;

import com.hongxin.nw.netty.utils.FieldPack;
import com.hongxin.nw.netty.values.TypeIdentif;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @remark --
 * @author: GuoXiaolin
 * @date 2019/5/22 17:43
 * @Version 1.0
 * @Descibe
 */
@Slf4j
@Getter
@Setter
public class ASDUcicna1{

    private String qoi;//在7.2.8中定义

    public void setQoi(String qoi) {
        this.qoi = FieldPack.caseToBin(qoi, TypeIdentif.BYTE_QOI.getByteLength());
    }

    public String getHexData() {
        return this.qoi;
    }

    @Override
    public String toString() {
        return "ASDUcicna1{" +
                "qoi='" + qoi + '\'' +
                '}';
    }
}
